# coding: utf-8
from . import db, BaseModel


class Paper(db.Model):
    __tablename__ = 'paper'

    auto_id = db.Column(db.Integer, primary_key=True)
    paper_id = db.Column(db.Integer, info='真题试卷id')
    paper_title = db.Column(db.String(255, 'utf8mb4_0900_ai_ci'), info='试卷标题')
    paper_content = db.Column(db.String(5000, 'utf8mb4_0900_ai_ci'), info='试卷内容')
    administrator_id = db.Column(db.Integer, info='管理员id')
    is_delete = db.Column(db.Integer, server_default=db.FetchedValue(), info='是否删除')
    create_time = db.Column(db.DateTime, server_default=db.FetchedValue(), info='创建记录时间')
    update_time = db.Column(db.DateTime, server_default=db.FetchedValue(), info='更新记录时间')